package com.taoyige.bean;

import java.io.IOException;
import java.io.InputStream;
import java.util.Date;
import java.util.List;

import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

import com.taoyige.common.JacksonJsonUtil;

/**
 * 自定义物流信息
 * @author peter
 * @version 1.0
 * @created 2014-11-13
 */
public class CustomExpressInfo extends Entity{
	
	private String context;
	
	private Date time;
	
	
	public String getContext() {
		return context;
	}

	public void setContext(String context) {
		this.context = context;
	}

	public Date getTime() {
		return time;
	}

	public void setTime(Date time) {
		this.time = time;
	}

	public static CustomExpressInfo  parse(InputStream ins) throws Exception {
		CustomExpressInfo customExpressInfo = (CustomExpressInfo) JacksonJsonUtil.jsonToBean(ins, CustomExpressInfo.class);
		return customExpressInfo;
	}
	
	public String toString() {
		return ToStringBuilder.reflectionToString(this,
				ToStringStyle.SHORT_PREFIX_STYLE);
	}
	
}
